function login(){
    var username = document.getElementById("ID").value;
    var password = document.getElementById("PASSWORD").value;
    if(username==""){
        $.jGrowl("用户名不能为空！", { header: '提醒' });
    }else if(password==""){
        $.jGrowl("密码不能为空！", { header: '提醒' });
    }else{
    	AjaxFunc();
    }
	
	
	
	
}
function AjaxFunc()
{
    var username = document.getElementById("ID").value;
    var password = document.getElementById("PASSWORD").value;
    $.ajax({
		async:true,
		type:"POST",
		url:"../../drugManager/findManager.action",
		data:{
			'manUser' : username,
			'manPwd' : password
		},
		success:function(msg){
			if(msg.num == 0){
				$.jGrowl(msg.msg, { header: '提醒' });
				location.href = "homes.html";
				
			}else{
				$.jGrowl(msg.msg, { header: '提醒' });
			}
		}
	},"json");
   
}